package com.Hermes.User;

public class PD_oracle {
    public int LEN;
    private  PD_Oracle_node[][] data;
    public PD_oracle(int l){
        LEN=l;
        data=new PD_Oracle_node[LEN+9][LEN+9];
    }
    public void setup(int id1, int id2, int sd,int l) {
        PD_Oracle_node tmp = new PD_Oracle_node();
        tmp.pd_pointlist.add(id1);
        tmp.pd_pointlist.add(id2);
        tmp.shortDistance = sd;
        data[id1][id2] = tmp;
    }

    public void add(int id1, int id2, int point) {
        PD_Oracle_node tmp = data[id1][id2];
        tmp.pd_pointlist.add(point);
        data[id1][id2] = tmp;
    }

    PD_Oracle_node find(int id1, int id2) {
        return data[id1][id2];
    }


}
